from django import forms

from .models import DownloadTaskDetail, DownloadTaskResult

"""
The example: The usage of django.forms.Form example
class ExampleForm(forms.Form):
	name = forms.CharField(max_length=100)
	age = forms.IntegerField()
"""


class TaskForm(forms.ModelForm):
	""" Download Oss - Report Form."""
	class Meta:
		model = DownloadTaskDetail
		fields = '__all__'
		exclude = ['update_time', 'other']


class ResultForm(forms.ModelForm):
	""" Download Odps - Table Form."""
	class Meta:
		model = DownloadTaskResult
		fields = '__all__'
		exclude = ['update_time', 'other']
